package com.hrms.view;

import java.util.List;

import com.hrms.domain.BlockingStep;
import com.hrms.domain.BusinessObjectImpl;

public class BlockingView extends View {

	private String userId;
	
	
	@Override
	protected void initalize() {
		userId = getReqesutedUserId();
	}

	@Override
	protected void persistEvents() {
		//Todo
	}
	
	public List<BlockingStep> getBlockingSteps(){
		List<BlockingStep> bsList = BusinessObjectImpl.select(BlockingStep.class, "where userId==:p0 && status==:p1 ", new Object[]{ userId, BlockingStep.STATUS.Blocking.toString() });
		return bsList;
	}

}
